//
//  BaseVC.swift
//  物料商行
//
//  Created by HaoDong Hong on 2017/8/13.
//  Copyright © 2017年 HaoDong Hong. All rights reserved.
//

import UIKit
class BaseVC: UIViewController {
    
    let helper = LoginVCHelper()
    //@IBOutlet weak var bottomConstraint: NSLayoutConstraint!
    @IBOutlet weak var bottomlayoutConstraint: NSLayoutConstraint!
    let underKeyboardLayoutConstraint = UnderKeyboardLayoutConstraint()
    override func viewDidLoad() {
        super.viewDidLoad()
        navigationController?.navigationBar.tintColor = #colorLiteral(red: 0.5726983547, green: 0.565235734, blue: 0.09885739535, alpha: 1)
        underKeyboardLayoutConstraint.setup(bottomlayoutConstraint, view: view, minMargin: 10, bottomLayoutGuide: bottomLayoutGuide)
    }
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.view.endEditing(true)
    }
    
}
